package nc.bs.med.service;

import nc.vo.med.service.ServcallVO;
import nc.itf.med.service.IMedEJBService;
import nc.itf.med.service.IServiceProxy;

@SuppressWarnings( { "unchecked", "serial", "deprecation", "unused",
		"static-access" })
public class ServiceProxyHelper {
	private static String beanName = IServiceProxy.class.getName();

	public static java.lang.Object[] call(ServcallVO[] arg0) throws Exception {
		IServiceProxy bo = (IServiceProxy) nc.bs.framework.common.NCLocator
				.getInstance().lookup(beanName);
		java.lang.Object[] o = null;
		o = bo.call(arg0);
		return o;
	}

	public static java.lang.Object[] callEJBService(String modulename,
			ServcallVO[] arg0) throws Exception {
		IMedEJBService bo = (IMedEJBService) nc.bs.framework.common.NCLocator
				.getInstance().lookup(IMedEJBService.class.getName());
		java.lang.Object[] o = null;
		o = bo.callEJBService(modulename, arg0);
		return o;
	}

	public static java.lang.Object[] callService(String modulename,
			ServcallVO[] arg0) throws Exception {
		IServiceProxy bo = (IServiceProxy) nc.bs.framework.common.NCLocator
				.getInstance().lookup(beanName);
		java.lang.Object[] o = null;
		o = bo.callService(modulename, arg0);
		return o;
	}
}